package xyz.xtt.activity.response;

import java.util.ArrayList;
import java.util.List;

import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.Range;

import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Builder.Default;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author huqibo
 *
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class GroundMetaInfoData {
	@ApiModelProperty("地址")
	@Length(max = 1024, message = "地址")
	private String address;
	@Range(min = 1)
	@NotNull(message = "资产面积不能为空")
	private Double area;
	@Default
	private List<CertificateInfoData> first = new ArrayList<>();
	@Default
	private List<CertificateInfoData> second = new ArrayList<>();
	@NotEmpty(message = "经度不能为空")
	private String lat;
	@NotEmpty(message = "纬度不能为空")
	private String lon;
	private String desc;
	@Range(min = 0, max = 2, message = "类型取值无效0普通1商业2地标")
	private Integer type;
	private String level;
}
